package P3_15;

public class TimeInterval {
	//Instance variables
	int t1=0;
	int t2=0;
	
	//Constructor
	public TimeInterval(){
		this(0,0);
		}
	public TimeInterval(int t1){
		this(t1,0);
	}
	public TimeInterval(int t1, int t2){
		this.t1 = t1;
		this.t2 = t2;
	}
	
	//Methods
	public int getHours(){
		int hours = Math.abs(t1-t2)/100;
		return hours;
	}
	public int getMinutes(){
		int minutes = Math.abs(t1-t2)%100;
		return minutes;
	}
}

	
